-- GENERATED SPELL FOR [Brontus] --


function spell0_5827(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5827', 20000, 1)
end

function spell1_5827(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_5827', 3000, 1)
end

function Sorts_5827(pUnit, Event)
local choix_sorts_5827 = math.random(0, 1)
if choix_sorts_5827 == 0 then
pUnit:RegisterEvent('spell0_5827', 1, 1)
end
if choix_sorts_5827 == 1 then
pUnit:RegisterEvent('spell1_5827', 1, 1)
end
end

function mob5827_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5827', math.random(1500, 3000), 1)
end

function mob5827_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5827_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5827_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5827, 1, 'mob5827_Action')
RegisterUnitEvent(5827, 2, 'mob5827_Leave')
RegisterUnitEvent(5827, 3, 'mob5827_Kill')
RegisterUnitEvent(5827, 4, 'mob5827_Die')
